package net.osweb.crm.modules.sales.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Salesclearing entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sales_salesclearing")
public class SalesClearing implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4493978302155039484L;
	private Integer id;
	private Integer userid;
	private Integer salesOrderid;
	private String salesOrderName;
	private Integer price;
	private Integer status;
	private String type;
	private Timestamp createtime;
	private Integer isavailability;

	// Constructors

	/** default constructor */
	public SalesClearing() {
	}

	/** full constructor */
	public SalesClearing(Integer userid, Integer salesOrderid,
			String salesOrderName, Integer price, Integer status, String type,
			Timestamp createtime, Integer isavailability) {
		this.userid = userid;
		this.salesOrderid = salesOrderid;
		this.salesOrderName = salesOrderName;
		this.price = price;
		this.status = status;
		this.type = type;
		this.createtime = createtime;
		this.isavailability = isavailability;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "salesOrderid")
	public Integer getSalesOrderid() {
		return this.salesOrderid;
	}

	public void setSalesOrderid(Integer salesOrderid) {
		this.salesOrderid = salesOrderid;
	}

	@Column(name = "salesOrderName")
	public String getSalesOrderName() {
		return this.salesOrderName;
	}

	public void setSalesOrderName(String salesOrderName) {
		this.salesOrderName = salesOrderName;
	}

	@Column(name = "price")
	public Integer getPrice() {
		return this.price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "type")
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

}